</head>
<body>
	<!-- 头部布局 -->
	<div id="Top">
  		<div class="TopArea clearfix">
			<ul>
			   	<li class="userInfo">
				<span id="logintext">欢迎光临OSA官网&nbsp;&nbsp;&nbsp;&nbsp;<a href="{:U('Ucenter/index')}" target="_top">登录</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{:U('Ucenter/index')}" target="_top">注册</a>&nbsp;&nbsp;</span>
			   	</li>
			   	<li class="right">
			   		<font>服务热线：</font>
			   		<font style="color:#910E88;"><b>400-888-8888</b></font>
			   	</li>
				<li class="right" style="padding:0 0px 0 10px;">
					<a href="">帮助中心</a>
				</li>
			    <li style="padding-left:0;" class="right">
			    	<a href="{:U('Cart/index')}" title="去结算">去结算</a>
			    </li>
			    <li class="right miniCart">
			    	<span>
			    		<a title="查看购物车" href="{:U('Cart/index')}">
			    			<span id="cart_payid"><?php echo count($_SESSION['cart']);?></span>
			    		</a>
			    	</span>件
			    </li>
				<li class="clearfix right miniCartGo" id="topNav">
					<a href="{:U('Cart/index')}">购物车</a>
					<div class="topNavR"></div>
			   </li>
			   <li class="right bookmark">
			   	<a href="javascript:addfavorite();">收藏</a>
			   </li>
		   </ul>
 		</div>
 		<div class="clearfix" id="logoSearchArea">
		 	<div class="logoArea">
		 		<a name="top" href="">
		 			<img src="__PUBLIC__/Index/images/2013022646d3264540.png">
		 		</a>
		 	</div>
			 <div class="searchArea">
				<div>	
					<form style="position:relative;top:7px;right:10px;margin-top:35px;" action="" method="get" name="search_form">
				   	<input class="B_input searchText" id="keyword" name="keyword" type="text">
				   	<input class="go searchBtn" value="" type="submit">
				   	</form>
			   	</div>
				<div style="float:right;width:300px;margin-right:8px;" class="keys f_l">
					<span style="color:#97338E">热门搜索 ：</span>
                   	<a href="">2013春</a>&nbsp;&nbsp;<a href="">打底衫</a>&nbsp;&nbsp;
                   	<a href="">连衣裙</a>&nbsp;&nbsp;				
                </div>
			</div>
		</div>
		<!-- 头部索引 -->
		<div id="navArea">
			<ul id="qiji_nav">
				<li class="top">
					<a class="top_link_home" href="">首页</a>
				</li>
			    <li class="top">
			    	<a class="top_link" href=""><span class="down">新品</span></a>
	                    <ul class="sub">
							<li>
								<a class="fly" href="">03月08日新品</a>
							</li>
	                        <li><a class="fly" href="">03月05日新品</a></li>
	                        <li><a class="fly" href="">03月01日新品</a></li>
	                        <li><a class="fly" href="">02月26日新品</a></li>
	                        <li><a class="fly" href="">02月22日新品</a></li>
						</ul>
	    		</li>
	    		<?php
	    			//列表页缓存
	    			if(S('clothesCate')){
	    				// S('clothesCate' , NULL);
	    				$clothesCate = S('clothesCate');
	    			}else{
	    				$db = M('category');
		    			$result = $db->select();
		    			//递归格式化所有衣服分类数据
		    			$clothesCate = recursion($result , 1 , 5);
		    			//列表也缓存
		    			S('clothesCate' , $clothesCate , 3600*24);
	    			}
	    		?>
	    		<!-- 衣服分类数据 -->
	    		<foreach name="clothesCate" item="val">
	    			<li class="top">
			    		<a class="top_link" href="{:U('Goodslist/index', array('cid' =>$val['id']))}">
			    			<span class="down">{$val.name}</span>
			    		</a>
		                <ul class="sub">
		                	<foreach name="val.children" item="v">
		                		<li><a class="fly" href="{:U('Goodslist/index' , array('cid' => $v['id']))}">{$v.name}</a></li>
		                	</foreach>
						</ul>
	    			</li>
	    		</foreach>
			    
	        	<li class="top">
	        		<a class="top_link" target="_blank" href="{:U('Goodslist/index')}"><span class="down">搭配套餐</span></a>
	        	</li>
				<li class="top">
					<a class="top_link" target="_blank" href=""><span class="down">特惠区</span></a>
				</li>
				<li class="top">
					<a class="top_link" target="_blank" href=""><span class="down">热卖榜单</span></a>
				</li>
			</ul>
		</div><!-- 头部索引 -->
	</div><!-- 头部布局 -->